package com.goldgov.addressbook.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.goldgov.addressbook.service.AddressBookGroup;
import com.goldgov.addressbook.service.AddressBookGroupQuery;

@Mapper
public interface AddressBookGroupDao {

	/**
	 * 获取通讯录群组列表
	 * @param query
	 * @return
	 */
	List<AddressBookGroup> getAddressBookGroupList(@Param("query") AddressBookGroupQuery query);
	
	/**
	 * 根据id查询通讯录群组
	 * @param groupID
	 * @return
	 */
	AddressBookGroup getAddressBookGroup(String groupID);
	
	/**
	 * 添加通讯录群组
	 * @param AddressBookGroup
	 */
	void addAddressBookGroup(AddressBookGroup addressBookGroup);
	
	/**
	 * 修改通讯录群组
	 * @param AddressBookGroup
	 */
	void updateAddressBookGroup(AddressBookGroup addressBookGroup);
}
